Fixes some math operations.