Fix working with getByClass critical bug.