fix for cpu spike on linux