Fix version reading issue