fix detecting head version of topaz, fix #3023