fixed idle time bug