Get issues with writing out bytes fixed