Fixed several bugs, including the inialization of expression system in
slaves and client.