Fixed logic error in the Boundary modifiers.