Fix number conversion