fix mobile transition bug