fixed transition bug