Bug: Wrong type comparison