Fixed permissions script but