Fix resource chmod