fixing versions_count migration