fix permission of creating dir