Fix crash in client accept