Fix method name in warning message