fix issue with image editor not displayable the second time