bugfix for version detection