fix ac when comments are present