Fixes glitch in type comparison.