Handle maxscale = infinity properly. Patch by Lokodi Zsolt. Fixes #68