bugfix:convert index&cnt to int
modified:   line/views.py