fixed issue with inserts