Bug fix to grepping correct fields from HTML file