fix bug when multiple artefacts exist for a version