fixed cpu spike bug