Fixed bug when removing order rows depending on content