fix editing titles/captions in figure plugin