fix issue in insert; fix format