fixed bug where the version number gets overwritten