Fix Issue 1656

Fixes #1656.

Use fragmentDepth instead of getFragmentDepth.