Fixed bug where wrong version was being used