fix GetRecords maxrecords handling (#294)