fixed weird char problem. Need to fix opendir path problem