fix context suffix check bug