Fixed source of NPE.