Fix bug with incorrect bounds area calculation