fix permission error when setting password