My goldfish has the same thing and as far as I know I think it might be because of a sickness called fin and tail rot. I've looked it up and on Google and it says that the cures are aquarium salt and these other things. You can look it up and you'll find the two other cures. If you find out how to cure them please tell me.