Fix method name for warnings

Fixes #22