Fix sudo mechanism