bugfix in update mechanism