gliding bug fix