Dirty hack with serializable objects deserialization