Fix script error that occurs when run server with grunt.