Fix broken deprecation