fix permission of data dir