Fixing depth not being applied