fix issue when a selected cell shows up in an inactive month