[FIX] Error caused by a boolean
Merge pull request #413 from oihane/8.0-estimated_cost

[FIX] Error caused by a boolean