remove invalid comments