fix FrozenPotentialWrapper