solved several bug, about inteligent File and cardframe