Fixing double tracking of variables in memory frame