Be sure the glass, both inside and outside, is clean.
Turn off the flash and use only tank lighting.
If the object is close enough, use a macro setting. However, I've found the thickness of the glass tends to distort objects more with a Macro setting.
If you're trying to get pictures of a fish...