bugfix in recovery