Fixed cpu stuck at 100% bug