Supress warning message and prevent double warning