Fix collision detection for brim