bad partitionning reactive stocks

The fix is based on pr #121, so only the last commit is interesting. I'll rebase on master before merging.