Fixed several warning errors.

Fixed several warnings that used to appear on grunt.