Fixing sensor manager error