Bugfix: The optimization task started multiple threads, but should only start one.