fix a bug in calcuating the pause per second.