Added transitionEnd bug fix