Secret calculation error fixed