If it is a glass tank he just thinks there is really no glass in his way, my frog use to do it. Just put a background on 3 sides of the tank and he should stop.