fix getting the length of virtual method names