Fix - Undefined variable: method