improving angular minification safety