Fix dup IDs error when clicking 'previous page' after creating a new view