Fixed a critical error with version writing.

Line 210, the second byte written said "(version & 256)" when it should've been modular division.