problem with simplify_indexed plus patch