Fix dict usage