Fix: memory allocation for sshes