Fix idle time limit
Fix delegate problem