The problem would have been avoided if a proper due diligence had been done, which includes having a surveyor check if the property's location coincides with the official cadastral plan. Some lawyers don't always tell their clients about this, and some clients think that the $250+ that the surveryor charges is too much.