fix bug with invoking unexisting method