Fix wrong field was written to