BUGFIX: getType was not fetching type.