Corrected incorrect variable name
Pre-updated bytewrite useage before bytewrite update