Fix for rounded rectangles