fix options passing for views serialization