fixed permission problems