Fixed Periodic BCs and initial condition bug