Fixed trigger reset bug.