fix context and repositories (error beans)