Fixed dotProd