Correctly set permissions