Fixing tags and undefined hash