fix minor bug on finding linefoot