More correct calculating signature, when publishing