fix wrong anchor position in permalink