fixed a bug in facade.lua