fix no branch bug