fix broken insert parsing