fix reinstall crash