Fixed error in deserialize API's input