fix file permission issues