fix permissions at each start