Changed branches_id to branch_id