fix home dir crash