fix for removing widgets