Fixed bug on parallel execution: the query continued even if the limit was already reached.