Fixed errors in bilinear stuff