Length of alias key and target with fragment was not properly checked