Fixing boundaries extraction