dispatch(), fix remove_branch() exception "union is not defined"