fixed null terminate