Replaced deprecated constructor

So as not to break usage of deprecated class