corrected a bug in aliases parsing