fixed bugs in xpi