fix issue about option restore