Fixed byte length errors in keychain