PMO-2478: map needs to be cleared before every iteration. Additional work was needed in order to inject the periodScope correctly.