Bug fix: constant detection.