Fix other deprecation warning