fix file permissions issue