fix transition problem