fixed trail issue #30