fix bug with save button implementation that caused an exception