fixed bug with fan