fix lifecycle problem with transition