Bug fix: set correct boundary handling mode.