Fixed 2nd issue with serialization of multiple objects