Fix hide_callback on browser without transition support