fixed user nil issue