Fixing a bug in url handler.