fix NPE when no currentData