Replaced deprecated constructor

So as not to break usage of deprecated class
Can you add `} else { super.onChanged(); }`