Fix firmware version check