fixed widget death in some complex cases