Fixes global issues for grunt