Fix null user bug.