Fix the problem with boundary (fixes the Agros tests issues).