Fix dict error