fix ag --depth problem