fix nil user bug