bug fix for raw sensor