fixed bug in parallel composition
Code opt