Hotfix NPE.
Hotfix NPE bug.