fix for context sanity check