fix for small bug in idle timer