fixing user delete crash