dot product fix