fix ambiguous maps in mixed mode