Add missing new.

Fixes #3870