Bugfix

Fixed a bug where some data were not stored correctly in mysql mode.