Fixed error in type of new function (caught by type checker)