Optimization on urls, remove event exception