fix bug with widget parse.