I don't think old_entry can be a list here. If it was, it would have been replaced by a regular entry in line 1012. Or am I missing something?