minor tweak to avoid NPE.