fixed ruby serialization