fixed nasty bug in unloading sensors