Fixed stupid mistake calculating dot product.

Stuff works now