Corrects typo in deprecation error