fix panic in byte slice