name_changed was giving key error when name wasn't changed