fixed bug in get_area