Change the way we modify the preferences when using periodic boundary conditions.