Fix input deserializing