Fixed a bug with not going to the next page4