Fix for using the widget outside of the loop