fixing a bug if there are no version tags