Fixed issue related to transitionEnd event.