Fixed bug in ``fill_footprint`` following refactoring.