fix route's bug when area is undefined.