Fix crash for dictionary returns