Fixing scope bug with the assertion service

Fixes assertion issues