Fixed permission bug.