Attempt to fix 'client' undefined error