fixing bug with an even longer if
Merge pull request #145 from Jailander/hydro-devel

fixing bug with an even longer if