Fixes event propogation on click