Manually check the source depth. Fixes #757.