Fixed a bug when removing K type pknot.