fix context parsing regex