fixing  bug for 7th chord