Fixed Deserialization by adding init method instead of constructor.