Fixes bubbling in firefox