CHMOD in the wrong place