How old is your tank. First the ammonia, then the nitrites then the nitrates then the diatoms and then the hair algae. It's all part of the cycle. Some people have more of one and less on the other. All depends on how you maintain your tank. PWC, feedings, etc. Cut down on the feedings, lights and add some CUC's It should go away in time.