fix url handler