Fixed pagination

+ Fixed problem with crashing when going to next page