Fix dict pointer return