fixed calc-trail 'no-window hack