Fix type mismatch compilation error.