added pre delete container for inlines, fixed #368