Fix bad merge of getchains