fixed the bug about forgeting the former field in the $field / $newfield