fixed chmod craziness