removing errai AfterInitialization workaround by using proper errai flag