Fix bug with not working line finder