Fixed a bug in recovery handler.