Normal distribution throws errors when using shared variables

Bug raise: