Fixes an NPE.