Fixed bug in footprint method