bug fix inserts