localDepth fixed? lines 90 & 95.