Dot product fix