primary bug fix for multiple definitions of the same overlay