Fix seamless transition bug