Fixed NPE on boot.