Fix bug with idle in ubuntu