fix #1845 sandbox as widget