fix pb angular.elemt on window and elem do not work