Fix for incorrectly getting versions.