Fixed cs
Fixed an undefined variable
Merge pull request #3 from hason/cs

Fix cs and an undefined variable