Fix rect intersection

Fixes an issue where the wrong size was returned when calling `intersection`.