fixing flag overlay cloning