fix none exits file handler