Fixed bug that would remove values in edit table