Fix TypeError in gumps