fixing infinity months selected bug