fix problem in parallelSource and parallelLibrary