fixed problem with options serialization