small revision to JDance's depth buffer bug fix