I agree it could be the gravel/sand if you have any in the tank, which could be building up toxic gas pockets, which does indeed smells horrid... so best to get stirring that substrate and do a water change right after... also, make sure to have a test kit handy, coz once you start stirring the substrate up, it could also mess up your waters parameters...