Fixed issue with binary data when adding or removing header
Fixed bug when header is being removed from input