ensure version not empty