fixed area calculations bug