fix remove func_key references on user deletion