Fix if maxH & maxH are both supplied
Merge pull request #717 from tikuf/master

Fix if maxH & maxH are both supplied