Normal distribution throws errors when using shared variables

This is a bug, could you please raise an issue on github?