Fixed mixup between interval and timeout