fix for standard byte buf