fix float to correct type