fix bugs with name and areas recognition