Fix isClient/isServer method invocation