fix context for rcnn