exclude spurious comma in createWidget call