fix page move to the last position