Have you kept your chlorine at shock level for a period of time until the algae is dead? If not, then that is why you continue to have algae. With a CYA of 50ppm, your shock level will be about 15ppm to kill it.

But, do the bucket test first before shocking the pool.