small fix for states in raw sensor