fixed null byte issue