Fix bug that made CPU go mad