Fix #285 again

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Merge pull request #343 from echampet/share-limits

Fix #285 again