Fix broken deprecated constructor