client: fix the update method

Resolves-bug https://github.com/sebhtml/Ray-Cloud-Browser/issues/6
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>