fix GetRecords maxrecords handling (#294)

Per #294