an_parser: fix context initialization