removed typo
fixed startup error looking for completions when client === null