fix context generated