Corrected bugs in areas and volumes calculations