fix save bug after adding rows