fixed the problem of open error;