Fixed issue with header size not being sent