Fix Errors

Fix error with the integer, for more information please read the following document

http://stackoverflow.com/questions/16918826/objective-c-implicit-conversion-loses-integer-precision-nsuinteger-aka-unsig