Fix dict lookup