Merge branch 'fix_write_bug' into 'master'

Fix write bug

See merge request !157
8 jobs for close_thread in 10 minutes and 15 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Unit Test
passed run_unit_tests_on_linux #2325213
linux

00:02:20

23.0%
passed run_unit_tests_on_windows #2325214
windows

00:05:31

23.0%
 
  Integration Test
canceled run_scenario_files_on_linux #2325215
linux

00:04:42

canceled run_scenario_files_on_windows #2325216
windows

00:04:42

 
  Seed Test
canceled run_seed_test_on_linux #2325217
linux

canceled run_seed_test_on_windows #2325218
windows

 
  Deploy
canceled deploy_branch_on_linux #2325219
linux allowed to fail manual

canceled deploy_branch_on_windows #2325220
windows allowed to fail manual