fixed angular recursive bug in nested rpc calls