fixes in reading of `page`, `total` and `records`. Fix resetting page 0 to 1