fixed the virtual sensor id in global variable issue