Fix sub_dot implementations.