fix NPE while register new engineer