fixed bug with getting current version