Fix version comparison