fixed error in BgTask example