Fix margin issue affecting anchor point positions