Theres a trifecta to algae control. Its a balancing act between lights, ferts, and carbon. If any of these are out of whack it can cause algae growth.
What are you using for ferts?
What light fixture do you have?
How long are you running your lights?
In short, if your nutrient levels are too low then the plants can't grow because they lack the nutrients. Algae requires a much smaller amount of nutrients to grow than plants do so it allows them to take hold and start growing over the plants. Co2 has this same effect.
If your lights are too powerful and are on for too long it will also spur the growth of algae.