fixed weird section editing bug (would save section instead of merged