fix non-existent branches