removed a bug in XPI