fix inserts for empty models (only have an id)