Corrected subkey calculation error