fixed issue with references and inc the version number