fixed a bug related to accessing alias elements by indices