fix bug in facade.