Fixed widget factory error.