Fixing bug with poll when inside of a panel pane