Bugfix in calling write_fieldvals