Avoiding unnecessary warning message