Fix NoSuchMethod error