fixed getCheckSum method return value error