Fix unnecessary warning message