restoration bug fixed