Fix some error in openmp scan spawner