Fixed bug with insert.