Fix wrong alias logic.