Fixing a bug with the sample year change listeners