fix error, work on Insert function completed.