Fix depth issue in Engine