Fixes NPE.