it usually comes from dirty water, or an infected previous injury. what i do is i boil everything in the tank to kill anytype of bacteria, keep the tank clean, and use aquarium salt. other senior members probably have more advice and experience.