Fixes excluded rect computation