fixed copyright warning logic