bootstrap's transition detection fix