Fixed a variable linking problem