null user bug fixed