Fixed restore.c to fix make errors