fixing permissions on file