ticket:14, fixed widget initialisation