The weird behavior when inserting new records is fixed.