fix dumb mistake leading to AIOOBEs in Class.getMethod