Fix onenter action