fix error with no branch