fix context key check on optional tabs
fix context key check on optional tabs