fixed bugs of chord