Fix factory problems for potentials read from qsc files