Float point inf bug fixed