fix get dictionary by groups