fix float/int bug