If there's any ammonia, it's a toxic environment. What blert meant was that the fish was looking for water that was not toxic. If your fish literally jumps to its death, even though this species is known to jump, you must check your water parameters to see what it might have been trying to escape.
Sorry for your loss.
75: blood parrots, featherfin cat, emperor tetras, turquoise rainbowfish, BN plecos, japanese trapdoor; 46: WCMM, gold inca snails, ghost, bamboo & amano shrimp, kuhli loaches, rummynose & ember tetras, endlers, platies, flame gourami, guppies; 16: pygmy, peppered, loxozonus corys, otos, assassins, RCS ... ~ Research PRIOR to purchase.... ~