fix browserlayer precedence
avoid error on contexts without annotations