unfortunately, this type of thing usually relates to the water quality and I know an average fishkeeper usually changes the water once a month or so. Use aquarium salt and clean more often.
also, it could very well be an eye injury that got infected (not enough WC's might have somthing to do with that), but if it is doing better just keep it up, and hopefully it recovers well