Fixed some warnings
Merge pull request #927 from moai/fix-warning

Fixed some warnings