Fixed bug that prevented pages from being able to move to the last position