Fix footprint detection