bug fix for transitions