added fix for math.huge serialization to state api