fixed duplicate ids in math images