Fix update failing when no fields are changed