added fix for angularjs1.3 debug turned off