remove invalid record