fixed two errors in 1823 matt