Fixed bug when loading definitions.