Fixed  minimal depth condition.