Small error display fix

just fixed an unchecked function refrence to a deprecated object