Bug in moving partition when particles on boundary