fix bug with redirection when item was deleted