Fixed errors when finding home and away teams