fixed validateVersion.

related to #454.