fixed bug in client side method call