fixing small issue with mal-formed urls crashing