remove unnecessary null char setting