fix tms demo page when 'use_grid_names' is enabled