fix merging of aliases