validate xpi: fix a few things