fix a bugs with guest and libpfm