fix errors in client marshalling

Signed-off-by: Mattias Andrée <maandree@operamail.com>