fix dynamic grid labels