Fixed deprecation warning in the backend.