fixes the error with the angular resources loaded before the angularjs itself