repair grammar for stability