Fix bug in delete_user