fixed an AngularJS problem with automatically created ids