fixed permission bug.