fixed bug that caused the version to be inconsistently reported