capturestructure fix