Fix Permissions error. Closes #249