fix multiple resynthesis due to incorrect sensor state check