Fix annotations in regress2. (#1917)