fix the accept patch