Fix math method