Restore before build