Clean up maxrec and set the cl->maxrecs