prevent crash on widget containers