Fixing dot product for dll_dg