Fixing crash when type doesn't exist in _types map