workaround bug of urihandler in firefox