fix access to invalid urls