fix anchor position for figures