Got rid of the race condition in the show hidden rows code