fixed boundary copy and hidden bug in setBoundaries