Fixed some bad interaction between variable and data sheets.