Fixed some problems with saving and submitting variant changes.