fixed cipher not init bug