fix syntax error on method not found