For some reason I have to typecast page to str for deletion checking.