Are you leeping the light in the tank on? If your tank light is on and the room light is not the walls of your tank will act as a mirror which will make him flare nonstop.
Just a warning that this constant flaring might lead to tailbiting. Try turning the tank lights off and just using natural light or turn on the lights in your room.
If you have a dark background in the tank it will contribute to the refection.