fix small range bug k > 2