fixed count_lt bug