correct the null character