fixed a bug in the url::to event