Fix NullPointerException at EventPool