Bug Fixes

Fixed file permission errors.