fix collect-internal-methods