Fix some permissions and style