fixed crashes when link doesn't have scheme