Getting the client properly from settings

Right now if the client is specified in the options hash there is an error saying that client is not defined in the line 21.