fixed pagination start page calculation