fix for not preventing default event