Fix a bug with accept