Fixed deprecated error message