[Bug Fixed] change boundary in for loop.