Corrected stat-select variable issue