Merge pull request #255 from jonnytpuppet/depth_fix