Fix one deprecation warning