bugfix for chord insertion