fixed permissions error