Fix #232. Deleting the last element of the last page will now reset the current page to the previous page