fixed small CompPotential error