fix wrong method exists check.