fixed escape widget exception type error