Pagination And Delete Issue

Hi Everyone,
I completed pagination video and was checking the delete functionality. Everything works fine if I delete from 1st page. But if I start deleting from 3rd page, the current page does not move to 2 page and shows 0 movies.