fixed bug in parallel constraint