fix NPE for add and scoring