fix bugs with pagination & loadFrom