Added recovery for bad log rows