Fixed some warnings

Why don't you use NSUInteger instead?