Fix transient end event bug