fix bugs in zkcontext's initialization.
update pom.xml.