Fixed error where wrong field was being saved.