Fixes bug with event bindings on accordions