fixed depth.js