Adapate the GUI to typed return of Pdeserialize
Fixed error in deserialize API's input