fixes active_branch method