Corrected firmware version calculation