Fix bug in spaghetti (openmp disabled)