bugfix (IITCm crashed if an unvalid URI was given)