Fix order of math operators so they don't interfere