fix dict syntax