Bug in recovery mechanism fixed