small fix for command sensor