fixes anchor to publish method