fix old_permalink field