fixed issues in xInvoke