Fix set permissions statement