Added error case for no matching tags