Fixed warning from using incorrect method.