fixes bug with checking bytesize