Fix chord parser bugs