persistence bugfix