Fixes bug where prevenDefault was not being called