you dont need to reset camera.bmap, you just make a global bmap, thats how i got it to work.