fixed a small bug where the difficulty wouldn't update while publishing.