Added prevent default to fix a bug