fixed bug; newest version would not be set as latest if it was the only version donwloaded