fix floating number error