Changed dependency injections to prevent errors during minification