fixes angularjs loading issue