Fixed die crash bug. Fixed stat NPE and fixed statemitters