better handling of inline equations
Fix inline equations