Fixed errors

Rearranged the division in the expressions to fix the errors