Workaround for some wonkiness in Angular in respect to the global scope arrays.