bug fixes for transition end events