fixed chmod when chmoding link