Rename Twice

I have a rule that uses two rename actions. The first action uses pattern matching to rename the file using different fields, and it uses periods to separate the fields in the final name. But, sometimes a field is empty leading to repeat periods appearing in the final name. I want to get rid of those, so the second action uses the rename with pattern "filename" along with the "Replace Text" option to remove all repeat periods.
This seemed to be working fine for a while, but recently (when I changed the destination folder of the files) it stopped. The pattern "filename" seems to be referring to the original filename of the file, rather than the filename just prior to rename action.
Should two stage renaming work in the manner originally intended, or are renames always to be made with respect to the original filename?
This seemed to be working fine for a while, but recently (when I changed the destination folder of the files) it stopped. The pattern "filename" seems to be referring to the original filename of the file, rather than the filename just prior to rename action.
Should two stage renaming work in the manner originally intended, or are renames always to be made with respect to the original filename?