fix is_float detection