fixed issue with refmax not being set, and fixed issue with checking correctly for longitude axis