Fixed accidental call to client-only code