Fixes getting active widget