fix float exception