Fix a bug in parsing remote list