Fixed bug in version tagging