fix the coredump bug in facade