Fixed a `repeatCount` problem in 64bit architecture.