Fix issue that warning disappear in some cases