Fix a crash in checkAccept