fix insertion of data instances