fix for $sce errors when calling

also for those errors when calling refreshUrl