fix restoring options after serialization