Fixing reported bug of streamrule modal not closing properly

Fixes #427