Fix bug with removing deep values