Fixes a bug related to data structure.