fixed directory permission issue