fixed error with equation