fixed chmod problems