fix logic where one million was not converted correctly