Fixed Multi Threading bug at Client

When running more threads than tasks