fix dict syntax deprecation warning