fix permission changed before starting service