Fixes topology parsing on 64bit systems