fixed 0 length handling for int/float