fixed the bug with NoSuchMethodError