Fixed NPE in initialisation callback.