fix new dict-syntax deprecation warnings