fixed blue screen with branching