Fix type coercion error.