Bugfix to parallel version.