SourceFormatter - fix incorrect logic that could break SourceFormatter