fix permission error which may happens on new account