fix: before_enter and after_enter is firing during initialization