Fixed version bug

See 9204d30402f0307b0beb7206eb9c5f7e77fe8dca