fix constructor call typing