fixed an error that prevented the selected weeks from being unique in some cases.