fixed permission loading