Fix afterAction event