fixed a bug with dot product