fix for trail