fix sudo user bugs