fixed isClient/isServer