Fixed error checking for name in pft
Fixed error checking for name in pft