fix if delete all the versions