fix user nil issue