You can clear the ini section before you hsave, hsave not overwriting sounds like a bug but it may not be fixed if it's standing existing behavior.