fixed bug in get_bcd_list