fix hang in increment api