Rectangular footprint robot not avoiding obstacles

Hello,
Im using ros2 galactic building a rectangular robot. while using the rectangular footprint with the obstaclefootprint plugin the robot collides with new obstacles on the map. However if set to robot radius with baseobstacle plugin it avoids perfectly