fixed float issue in innerproducts