Fixed bug where incorrect destination filename would be logged