Fix type so that comparison works correctly.