fix chmod copying