fix a typo in xwarejs