Fixed deplot script.

Fixed invalid tokens being accepted