bugfix in persistence