#57 fixed extension references to be available in onInit() function.