Since group_info and width are used for the key actions allocations, when modifying them we need to take care of reallocation key actions if needed. (cherry picked from commit fabc4219)