fixed character overflow issue in version check