fixed CHMOD issues