Fixes bugs at gruntfile