fix parsing bug related to aliases