fix a bug, nil user