[fix] Correctly initialise the client. Fixes #37