0-indexed, and fix params error
Merge pull request #6 from alvinsj/change-status

0-indexed, and fix params error