bug fix for trail select