Fixed incorrect behaviour of version number