Bugfix in GetUnsafeVariables.