Fixed incorrect version reading.