fixed bug related to unserializable objects