fix a bug related to ember transitions