Application.Controller.Pages._after() causes problem [TypeError: Cannot read properties of undefined (reading 'addOne')]