Fix lock problems in parallel task
Fix StringBuilder