Fix type mismatch warning.