Fixed some file permission errors