Fixed the cpu Hogging