fixed very rar bug

when alias xyz -> abc
xyz-ddd would incorrectly resolve to abc-ddd