Fixed another deprecation warning.