Fixing math duplicate classes issues.